package com.itheima.exception;

public class Demo {
    public static void main(String[] args) {
        /* int[] ar = new int[] {1,2,3,4,5};
       //索引越界异常
        int i = ar[5];
        System.out.println(i);*/

       //空指针异常
        int[] arr = {1,2,3,4,5,6,7};
        System.out.println("null");

    }
}
